﻿// This is an open source non-commercial project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com

// ReSharper disable CheckNamespace
// ReSharper disable CommentTypo
// ReSharper disable IdentifierTypo

/* SearchLevel7.cs --
 * Ars Magna project, http://arsmagna.ru
 */

#region Using directives

using AM;

#endregion

namespace ManagedIrbis.Infrastructure;

/// <summary>
/// ( level6 )
/// </summary>
sealed class SearchLevel7
    : ComplexLevel<SearchLevel6>
{
    #region Construction

    /// <summary>
    /// Constructor.
    /// </summary>
    public SearchLevel7()
        : base(null)
    {
    }

    #endregion

    #region ISearchTree members

    /// <inheritdoc cref="ComplexLevel{T}.Find"/>
    public override TermLink[] Find
        (
            SearchContext context
        )
    {
        Sure.NotNull(context, nameof(context));

        var result = Items[0].Find(context);

        return result;
    }

    #endregion

    #region Object members

    /// <inheritdoc cref="ComplexLevel{T}.ToString" />
    public override string ToString()
    {
        var item = Items[0];

        var result = item.ToString();

        return result;
    }

    #endregion
}
